﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Effects.GUI
{
    /// <summary>
    ///  Class derived from TableLayoutPanel changing Mouse wheel event behaviour.
    /// </summary>
    /// <remarks>
    ///  Only reason for this class is to change beahviour of TableLayoutPanel on MouseWheel event. 
    ///  This class just ignores any mouse wheel action, so it can be scrolled only by moving VScrollBar.
    /// </remarks>
    public class MyLayoutTablePanel:TableLayoutPanel
    {

        /// <summary>
        ///  Empty OnMouseWheel method. Causes that content can be scroll only by using VScrollBar.
        /// </summary>
        /// <param name="e"> Event arguments </param>
        protected override void OnMouseWheel(MouseEventArgs e)
        {
        }
       
    }
}
